package com.pay.lifecycle.repository;

import com.pay.domain.entity.City;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Evan
 * @date 2018/2/4
 */
@Repository
public interface CityRepository extends JpaRepository<City,Long> {
    /**
     * 根据省编码查询市数据
     * @param provinceCode
     * @return
     */
    List<City> findByProvinceCode(Integer provinceCode);
}
